home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6221 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP: turbo c++ 3.1:  owl.h not finding WIN30 or WIN31 defined <?>
  5. Date: 11 Feb 1996 22:51:33 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4flrtl$9q1@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe13.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 10, 1996 06:07:59 in article <HELP: turbo c++ 3.1:  owl.h not
  15. finding WIN30 or WIN31 defined <?>>, 'maclucas@teleport.com (Malcolm B.
  16. MacLucas)' wrote: 
  17.  
  18.  
  19. >Ok, here's the the situation 
  20. >I got this for christmas a couple of years ago, and put it away.  I
  21. couldn't 
  22. >remember why.  Now I'm trying to use the product again and now I know why
  23. I  
  24. >put 
  25. >it away in the first place.  When I try to use the tutorial, turbo 3.1
  26. wants a  
  27. >#include <owl.h>        as the first line 
  28. >however, when I try to run the program, I get an error from the owl.h in
  29. this 
  30. >code. 
  31. >#if         !defined(WIN30) && !defined(WIN31) 
  32. >#error   OWL must be built with WIN30 or WIN31 (or both) defined. 
  33. >#endif 
  34. >does any one know what I'm talking about?  what do I need to do
  35. differently? 
  36. >has anyone else run into this problem with borland turbo c++ 3.1?   
  37.  
  38. Yes. The upgrade from Windows 3.0 to 3.1 was a quite a jump -- 
  39. new API functions implemented and behavior changed on others. 
  40. When BC3.1 was released, there were still lots of Windows 3.0 
  41. systems around and Borland wanted BC3.1 users to be able to take 
  42. advantage of the new 3.1 features as well as building backward- 
  43. compatible executables.  To specify which platform the executable 
  44. being built was targeted, Borland adopted the use of a preprocessor 
  45. macro. 
  46.  
  47. So, the bottom line is, since nobody (of any significance) still runs 
  48. Windows 3.0, opt for the 3.1 API.  You can #define WIN31 in each 
  49. source or header file using OWL, or you can choose the defined 
  50. it as an option in the IDE.  I don't remember how exactly the 
  51. latter is accomplished, but look around the options.  It should 
  52. be somewhere.  If not, resort to the first method. 
  53.  
  54. -- 
  55. Pete Grant 
  56. Kalevi, Inc. 
  57. Software Engineering & development
  58.